const express = require("express");
const proxyRouter = express.Router();
const httpProxy = require("http-proxy");


proxyRouter.all("/*",(req,res)=>{
    var proxy = httpProxy.createProxyServer({target:"https://api.weixin.qq.com/",secure:false})
    proxy.web(req,res,{target:"https://api.weixin.qq.com/"})
})

module.exports = proxyRouter;
